'use strict';

const Service = require('egg').Service;

class SearchService extends Service {
    async getWords(key,uid) {
        return await this.app.mysql.query(`select * from wordlist where title like '%${key}%' and s_id in (select s.id from storelist s where uid=? or status='是')`,[uid])
    }
}

module.exports = SearchService;
